﻿namespace Away.IdentityServer.Core.Services.Impl;

[ServiceInject(ServiceLifetime.Scoped)]
public class ApiScopeService : IApiScopeService
{
    private readonly IApiScopeRepository _apiScopeRepository;
    public ApiScopeService(IApiScopeRepository apiScopeRepository)
    {
        _apiScopeRepository = apiScopeRepository;
    }

    public List<SelectItems> List()
    {
        return _apiScopeRepository.List();
    }

    public IResult Page(ApiScopeSearch search)
    {
        return _apiScopeRepository.Page(search);
    }

    public void Remove(List<int> ids)
    {
        _apiScopeRepository.Remove(ids);
    }

    public void Save(ApiScope model)
    {
        _apiScopeRepository.Save(model);
    }
}
